package sis.studentinfo;
import static org.junit.Assert.*;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

import org.junit.Test;


public class DateUtilTest {
@Test
public void createDate(){
	Date date = DateUtil.createDate(2000,1,1);
	Calendar calendar = new GregorianCalendar();
	calendar.setTime(date);
	assertEquals(2000,calendar.get(Calendar.YEAR));
	assertEquals(calendar.JANUARY,calendar.get(Calendar.MONTH));
	assertEquals(1,calendar.get(Calendar.DAY_OF_MONTH));
}
}
